//
//  TextAlertView.h
//  自定义AlertView
//
//  Created by 丶离人梦 on 2017/2/9.
//  Copyright © 2017年 丶离人梦. All rights reserved.
//

#import <UIKit/UIKit.h>
@class TextAlertView;

@protocol TextAlertDelegate <NSObject>

- (void)TextAlertView:(TextAlertView *)alertView clickedButtonAtIndex:(NSUInteger)buttonIndex textMessage:(NSString *)textMessage;

@end

@interface TextAlertView : UIView<UITextFieldDelegate>

@property(nonatomic,weak)id<TextAlertDelegate>delegate;

- (instancetype)initWithTitle:title delegate:delegate cancelButtonTitle:cancelTitle otherButtonTitle:otherTitle;

- (void)Show;

@end
